<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>圣杯布局</title>
    <style>
        .container {
            padding-left: 150px;
            padding-right: 190px;
        }

        .main {
            float: left;
            width: 100%;
            background: red;
        }

        .left {
            float: left;
            width: 190px;
            margin-left: -100%;
            position: relative;
            left: -150px;
            background: yellow;
        }

        .right {
            float: left;
            width: 190px;
            margin-left: -190px;
            position: relative;
            right: -190px;
            background: green;
        }
    </style>
</head>

<body>
    <div class="main"></div>
    <div class="left"></div>
    <div class="right"></div>
</body>

</html>